Let's look at how you log in to a Cisco router.
|
Here, you are connected to the router by the asynchronous serial console port.
|
The Cisco IOS command interpreter, EXEC, interprets the commands you type and carries out the corresponding operations.
|
You need to log in to the router before you can enter an EXEC command.
|
So you press UReturnu.
|
When you first log in you see the user EXEC mode prompt.
|
You can type R?r at the prompt to display a list of available commands.
|
The More prompt indicates that there are more commands to see.
|
If you press UReturnu, you see the next line.
|
You can see the contents of the next whole screen by pressing the space bar.
|
To exit User mode and log out of the router, you type Rlogoutr.
|
If there is no keyboard entry, the session will timeout and you will have to hit Enter again to get started.
|
You enter Privileged EXEC mode by typing Renabler at the command prompt.
|
Then you enter a password.
|
The EXEC prompt is terminated with a hash sign while you are in this mode.
|
You can type R?r here to see a list of privileged EXEC commands.
|
Once again the More prompt indicates further information is available.
|
As in User mode, you can see the next line by pressing UReturnu.
|
Or the contents of the next whole screen by pressing the space bar.
|
Notice that many more commands are now available in Privileged mode.
|
You can press any key to return to the system prompt.
|
To exit back to User mode you type Rdisabler.
|
When you have finished working with the router you can exit the user interface by typing Rlogoutr.
|
You can abbreviate the Logout command to Rlogor.
|
This logs you out and ends your current session with the router.
@@
<F>You can use the context-sensitive help features of the Cisco IOS to determine the command that you need to perform a given task.
|
Suppose you want to set the router clock.
|
You can obtain a list of commands that begin with a particular character sequence by typing those characters followed immediately by a question mark.
|
When using context-sensitive help, the space (or lack of a space) before the question mark (?) is significant.
|
This form of help, in which characters are followed immediately by a question mark, is called Rword helpr because it completes a word for you.
|
When you discover the correct command to use, it still may not be complete on its own.
|
You can use help to check the syntax for setting the router clock.
|
You type the command, add a space, and then type R?r.
|
The help output shows that the Set keyword is required.
|
This form of help is called Rcommand syntax helpr, because it reminds you which keywords or arguments are required to continue a command.
@@
Next you can check the syntax for entering the time.
|
Then you enter the current time using hours, minutes, and seconds, as shown here.
|
In the example shown here, the system indicates that you need to provide additional arguments to complete the command.
|
<F>You press UCtrl+Pu to repeat the previous command entry automatically.
|
Then you add a space and a question mark to reveal additional arguments. The output tells you that you need two more arguments.
|
If you enter an incorrect command, the caret symbol (R^r) and help response indicate the error.
|
Notice that the caret symbol character is displayed at the point in the command string where the IOS detected that you entered an incorrect command, keyword, or argument.
|
This error location facility together with the interactive help system allows you to find and correct syntax errors easily.
|
In this case you press UCtrl+Pu to recall the last command you typed, and you add a space and type R?r.
|
Here, another required parameter is displayed.
|
Now you can complete the command entry and press UReturnu to execute the command.
@@
<F>The Cisco user interface includes an enhanced editing mode that provides a set of editing key functions.
|
Enhanced editing mode is automatically enabled.
|
You can disable Enhanced Editing mode and revert to the editing mode of previous Cisco IOS releases.

For example, you might want to disable Enhanced Editing mode if you have pre-built scripts that don't interact well if it is enabled.
|
The editing command set provides a horizontal scrolling feature for commands that extend beyond a single line on the screen.
|
When the cursor reaches the right margin, the command line shifts ten spaces to the left.
|
The dollar sign indicates that the line has been scrolled.
|
You can scroll back to the start of the line by pressing UCtrl+Bu (or the Uleft arrowu key) repeatedly.
|
If you press UEsc+Bu you move back a word at a time.
|
Alternatively, you can press UCtrl+Au to return directly to the start of the line.
@@
You can use several Cisco IOS commands to examine the status of a router.
|
Each command allows you to examine a different configurable component of the router.
|
You log in to the router and enter privileged mode.
|
You type Rshow versionr to display the configuration of the system hardware, the software version, the names and sources of configuration files, and the boot images.
|
Here you can see

 the current version of 
  the Cisco IOS being used
|
 how long the router has 
  been up
|
 how the system was 
  restarted
|
 where the operating 
  system was loaded from
|
You press the space bar to see the next screen.
|
You can find information about the router's interfaces.
|
And you can check the value of the configuration register.
@@
To display information about the active processes you type Rshow processesr.
|
First you can check the overall CPU utilization in the previous five seconds, minute, and five minutes.
|
PID represents the ID number of each process.
|
Q tells you the process queue priority (RHrigh, RMredium, or RLrow).
|
Ty represents a test of the status of the process.
|
PC is the current program counter.
|
Runtime (in milliseconds) denotes the CPU time that the process has used.
|
Invoked represents the number of times the process has been invoked.
|
uSecs tells you the microseconds of CPU time for each process invocation.
|
Stacks shows you the low watermark/total stack space available, in bytes.
|
TTY tells you which terminal controls the process.
|
Process displays the name of the process.
@@
To see how the management system allocates memory for different purposes in the router you type Rshow memoryr.
|
The first section of the display includes summary statistics about the activities of the system memory allocator.
|
The information here includes the amount of memory in use, and the size of the largest available free block.
|
The second section of the display is a block-by-block listing of memory use.
|
You can scroll down to see more, and you type Rqr to quit back to the privileged mode prompt.
|
You can get a closer look at the buffers by typing Rshow buffersr.
|
You can see from the example shown here that there are different buffer sizes available.
|
<F>You can examine flash memory more closely by typing Rshow flashr.
|
You can also see the size of the files, and the amount of flash memory free.
|
You can see what hardware interfaces are on the router by typing Rshow interfacesr.
|
In this example, you press the space bar to see the details of the Ethernet (E0) interface.
@@
You can show what protocols are configured on the router by typing Rshow protocolsr.
|
In the example shown here, IP is running, but the other protocol options are not.
|
IP is configured on the Ethernet interface and on the serial ports.
|
You can examine IP further by typing Rshow ip protocolr.
|
<F>In this example, IP is using RIP as its routing protocol.
@@
Let's log in to a router, SanFran, now.
|
You press UReturnu to get started.
|
Now that you are in User Mode, let's access privileged mode.
|
You type Renabler to access Privileged mode.
|
You can also abbreviate the enable command to Renr, Renar, and so on.
|
Then you supply a password.
|
The prompt indicates that you are now in Privileged mode.
|
You type R?r to see Privileged mode commands.
|
And you press the space bar to see each screen of information.
|
You type Rdisabler to exit Privileged mode and get back to User mode.
|
You can abbreviate the disable command to Rdisar, Rdisabr, or Rdisablr.
|
Let's end this session now by logging out.
|
You type Rlogoutr to log out of the router.
|
You can abbreviate the Logout command to Rlogor.
|
This ends the session.
@@
Let's use Cisco commands to examine the status of some of a router's configurable components.
|
Assume you have logged in and have entered Privileged mode.
|
First we'll check the version of the Cisco IOS.
|
You type Rshow versionr to see the version of Cisco IOS.
|
The Cisco IOS version number is shown here.
|
The information displayed includes how long the router is up.
|
You can see how the system restarted.
|
You can then press Uspaceu bar to see more.
|
Alternatively, you can press UEnteru to see more information one line at a time.
|
Here you can see the value of the configuration register.
|
This setting of the register indicates that the router should load a Cisco IOS image from flash memory.
@@
Now let's examine the processes that are running on the router.
|
You can see which processes are running on the router by typing Rshow processesr.
|
The EXEC process has PID 1.
|
It has medium priority and is currently running.
|
The asterisk (*) indicates that a process is currently running.
|
You can also see the CPU time the process has used (in milliseconds), the number of times the process has been invoked, and the microseconds of CPU time for each process invocation.
|
If you press Uspaceu bar in this case you return to the router prompt.
|
Say you press UCtrl+Pu to recall the command and look at the processes again.
|
You can see that the processes information has changed.
@@
Now let's examine how the memory management system allocates memory for different purposes in the router.
|
You type Rshow memoryr to examine the memory statistics.
|
The first section deals with the activities of the system memory allocator.
|
And the second gives you a block-by-block listing of memory use.
|
You quit back to the router prompt by typing Rqr.
|
Let's look now at the router's interfaces.
|
You can see what hardware interfaces are on the router by typing Rshow interfacesr.
|
You press the space bar to see the details of the Ethernet (E0) interface.
|
Here you can see the physical, burned-in address (bia) of the interface.
|
You can also check the serial interfaces.
|
In this example, both are configured.
|
Let's look finally at what protocols are running on the router.
|
You type Rshow protocolsr to display the protocols that are configured on the router.
|
So in this case IP is enabled.
|
And you also see the associated configuration information for each of the router's interfaces.
@@
